package com.huawei.boss.resources;

import java.io.IOException;

import org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer;

import freemarker.template.Configuration;
import freemarker.template.TemplateException;

public class LocalizedFreeMarkerConfigurer extends FreeMarkerConfigurer
{
    /**
     * 是否使用本地化查询
     */
    private boolean localizedLookup = true;
   
    public void setLocalizedLookup(boolean localizedLookup)
    {
        this.localizedLookup = localizedLookup;
    }
   
    protected void postProcessConfiguration(Configuration config) throws IOException, TemplateException
    {
        super.postProcessConfiguration(config);
        config.setLocalizedLookup(localizedLookup);
    }
}